package com.mall.note;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Package: com.mall.note
 * @author: xiao-chen
 * @Create: 2023/4/13-16:16
 * @Version: v 1.0
 * @Description: 限流注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Limit {
    int time() default 5;

    int count() default 5;
}
